package com.week2.zuhe;

public class Author 
{
	private String name;
	private String email;
	private char gender;
	
	public Author(String name,String email,char gender)
	{
		this.name = name;
		this.email = email;
		this.gender = gender;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public char getGender() {
		return gender;
	}
	
	public String toString()
	{
		return "Author[name="+name+",email="+email+",gender="+gender+"]";
	}

}
//为什么name和gender没有set方法？
